﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotClientService.Handles.hks;
public class CnvVariable
{
    public ushort CommPhs
    {
        get;
        set;
    }

    public int CommSts
    {
        get;
        set;
    }

    public int[] DbuffR
    {
        get;
        set;
    }

    public int[] DbuffW
    {
        get;
        set;
    }

    public int DrLen
    {
        get;
        set;
    }

    public int DrStart
    {
        get;
        set;
    }

    public int DwAddr
    {
        get;
        set;
    }

    public int DwInfoAdd1
    {
        get;
        set;
    }

    public int DwInfoAdd2
    {
        get;
        set;
    }

    public int DwInfoAdd3
    {
        get;
        set;
    }

    public int DwLen
    {
        get;
        set;
    }

    public int DwReq
    {
        get;
        set;
    }

    public int DwRet
    {
        get;
        set;
    }

    public int DwRetAddr
    {
        get;
        set;
    }

    public int DwStart
    {
        get;
        set;
    }

    public int DwWordE
    {
        get;
        set;
    }

    public int DwWordS
    {
        get;
        set;
    }

    public char[] RxBuff
    {
        get;
        set;
    }
    /// <summary>
    /// 接收的数据
    /// </summary>
    public byte[] RxBuffB
    {
        get;
        set;
    }

    public int RxCnt
    {
        get;
        set;
    }

    public int RxEnd
    {
        get;
        set;
    }

    public int TimeOut
    {
        get;
        set;
    }

    public char[] TxBuff
    {
        get;
        set;
    }

    public byte[] TxBuffB
    {
        get;
        set;
    }

    public int TxCnt
    {
        get;
        set;
    }

    public CnvVariable()
    {
        this.TxBuffB = new byte[1200];
        this.RxBuffB = new byte[1200];
        this.TxBuff = new char[2048];
        this.RxBuff = new char[2500];
        this.DbuffR = new int[10000];
        this.DbuffW = new int[10000];
    }
}
